package service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import dao.NoticeDao;
import entity.Notice;
import service.NoticeService;

@Service
public class NoticeServiceImpl implements NoticeService {

	@Resource(name = "noticeDao")
	private NoticeDao nd;

	public NoticeDao getNd() {
		return nd;
	}

	public void setNd(NoticeDao nd) {
		this.nd = nd;
	}

	@Override
	public Notice getNotice() {
		return nd.getNotice();
	}

	@Override
	public void updateNotice(Notice notice) {
		nd.update(notice);
	}

}
